import http from '../utils/http'

/**
 * 根据用户id查询用户
 * @param {} id 用户id
 */
export const getUserById=(id)=>{
  return http.get(`/user/getUserById`,{'id':id})
}

/**
 * 修改用户信息
 * @param {} user 
 */
export const updUserById=(user)=>{
  return http.post(`/user/updUserById`, user, {
    headers: {
      'Content-Type': 'application/json'
    }
  });
}
